ObjectClosedException

This exception indicates an attempt to use an already closed object.

Usually, it happens when you call the close() method of an object (or its owner) prior to calling methods of that object.

Another common cause of this exception is working with cached DOM or JavaScript objects. For example, if you navigate to another web page and try to call a method of a DOM or a JavaScript object from the previous page, you will get this exception.

It's also possible that the native Chromium process crashes. In that case, all the objects that belong to that process are closed automatically.

The following article explains this exception in detail: ObjectClosedException.

Constructors

Link copied to clipboard
constructor()
Creates the exception.

Properties

Link copied to clipboard
open val cause: Throwable
Link copied to clipboard

Functions

Link copied to clipboard
fun addSuppressed(exception: Throwable)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getMessage(): String
Link copied to clipboard
Link copied to clipboard
open fun initCause(cause: Throwable): Throwable
Link copied to clipboard
open fun printStackTrace()
Link copied to clipboard
open fun toString(): String